<!DOCTYPE html>
<html>
<head>
<title>会员充值</title> <#include "/header.html">
</head>
<body>
	<div id="rrapp" v-cloak>
		<div v-show="showList">
			<div class="grid-btn">
				<div class="form-group col-sm-2" style="max-width: 200px">
					<input type="text" class="form-control" v-model="q.memberId" @keyup.enter="query" placeholder="会员ID">
				</div>
				<div class="form-group col-sm-2" style="max-width: 200px">
					<input type="text" class="form-control" v-model="q.mobile" @keyup.enter="query"
						placeholder="手机号">
				</div>
				<div class="form-group col-sm-2" style="max-width: 200px">
					<input type="date" class="form-control" v-model="q.startDate">
				</div>
				<div class="form-group col-sm-2" style="max-width: 200px">
					<input type="date" class="form-control" v-model="q.endDate">
				</div>
				<div class="form-group col-sm-2" style="max-width: 120px">
					<select class="form-control" v-model="q.type" @change="query">
						<option value="">类型</option>
						<option value="0">充值</option>
						<option value="1">提现</option>
					</select>
				</div>
				<div class="form-group col-sm-2" style="max-width: 200px">
					<select class="form-control" v-model="q.authStatus" @change="query">
						<option value="">审核状态</option>
						<option v-for="item in authStatus" :value="item.code">{{ item.value }}</option>
					</select>
				</div>
				<br/><br/><br/>
				<span style="margin-left: 15px"></span>
				<a class="btn btn-default" @click="query">查询</a>
				<#if shiro.hasPermission("biz:balancetopup:save")>
				<a class="btn btn-primary" @click="add">
					<i class="fa fa-plus"></i>&nbsp;充值
				</a>
				<a class="btn btn-primary" @click="changeStatus('TG')">
					<i class="fa fa-check"></i>&nbsp;审核通过
				</a>
				<a class="btn btn-primary" @click="changeStatus('WTG')">
					<i class="fa fa-times"></i>&nbsp;审核拒绝
				</a>
				</#if>
				<span>充值:<label>￥{{countDto.sumOne}}</label>&nbsp;&nbsp;提现:<label>￥{{countDto.sumTwo}}</label></span>
			</div>
			<table id="jqGrid"></table>
			<div id="jqGridPager"></div>
		</div>

		<div v-show="!showList" class="panel panel-default">
			<div class="panel-heading">{{title}}</div>
			<form class="form-horizontal">
				<div class="form-group">
					<div class="col-sm-2 control-label">充值会员</div>
					<div class="col-sm-10">
						<input type="text" class="form-control" v-model="balanceTopup.mobile" placeholder="会员ID或手机号" />
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-2 control-label">金额</div>
					<div class="col-sm-10">
						<input type="number" class="form-control" v-model="balanceTopup.amount" placeholder="金额" />
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-2 control-label"></div>
					<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定" />
					&nbsp;&nbsp;
					<input type="button" class="btn btn-warning" @click="reload" value="返回" />
				</div>
			</form>
		</div>
	</div>

	<script src="${request.contextPath}/statics/js/modules/biz/balancetopup.js?_${.now?long}"></script>
</body>
</html>